﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Core;

namespace Tanmia.NHibernate.Mapping
{
    public class AdjustmentNoteMap : BaseNoteMap<AdjustmentNote>
    {
        public AdjustmentNoteMap()
        {
            Table("AdjustmentNote");

            Id(x => x.AdjustmentNoteID).Nullable().GeneratedBy.Identity();

            HasMany(x => x.Details).KeyColumn("AdjustmentNoteID").Cascade.SaveUpdate();

        }
    }
}
